package xyz.hujf.bayes.test1;

/**
 * 训练样本的属性 javaBean
 */
public class JavaBean {
    //年龄
    int age;
    //收入
    String income;
    //是否学生
    String student;
    //信用等级
    String credit_rating;
    //是否买了电脑
    String buys_computer;

    public JavaBean() {
    }

    public JavaBean(int age, String income, String student, String credit_rating, String buys_computer) {
        this.age = age;
        this.income = income;
        this.student = student;
        this.credit_rating = credit_rating;
        this.buys_computer = buys_computer;
    }

    public JavaBean(int age, String income, String student, String credit_rating) {
        this.age = age;
        this.income = income;
        this.student = student;
        this.credit_rating = credit_rating;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIncome() {
        return income;
    }

    public void setIncome(String income) {
        this.income = income;
    }

    public String getStudent() {
        return student;
    }

    public void setStudent(String student) {
        this.student = student;
    }

    public String getCredit_rating() {
        return credit_rating;
    }

    public void setCredit_rating(String credit_rating) {
        this.credit_rating = credit_rating;
    }

    public String getBuys_computer() {
        return buys_computer;
    }

    public void setBuys_computer(String buys_computer) {
        this.buys_computer = buys_computer;
    }

    @Override
    public String toString() {
        return "JavaBean [age=" + age + ", income=" + income + ", student="
                + student + ", credit_rating=" + credit_rating + ", buys_computer="
                + buys_computer + "]";
    }
}